<div class="simple">
        <?php echo CHtml::activeLabelEx($model,'etd'); ?>
        <?php $this->widget('zii.widgets.jui.CJuiDatePicker',
              array(
                    'model'=>$model,
                    'attribute'=>'etd',
                    'value'=>($model['etd'] != null)?(is_numeric($model['etd']))?date('d/m/Y',$model['etd']):$model['etd']:date('d/m/Y'),
                    'htmlOptions'=>array('size'=>30),
                    'options'=>array('dateFormat'=>'dd/mm/yy'),
                   )
             );
?>
</div>
<div class="simple">
        <?php echo CHtml::activeLabelEx($model,'awb'); ?>
        <?php echo CHtml::activeTextField($model,'awb',array('size'=>30,'maxlength'=>15)); ?>
        
</div>
<div class="simple">
    <div>
        <?php echo CHtml::activeLabelEx($model,'vessel'); ?>
        <?php echo CHtml::activeTextField($model,'vessel',array('size'=>30,'maxlength'=>25)); ?>
    </div>
    <div class="big">
        <?php echo CHtml::activeLabelEx($model,'mode'); ?>
        <?php echo CHtml::activeDropDownList($model, 'mode', array('Air','Sea','Route','Train','-'),array('style'=>'width:214px;')); ?>
        
    </div>
</div>

<div class="simple">
    <?php echo CHtml::activeLabelEx($model,'remark'); ?>
    <?php echo CHtml::activeTextArea($model,'remark',array('rows'=>3, 'cols'=>64)); ?>
</div>
